/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.oracleandsxnd.erp.member.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.oracleandsxnd.erp.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;


/**
 * 礼品管理Entity
 * @author 礼品管理
 * @version 2019-12-13
 */
public class MemberSysemGift extends DataEntity<MemberSysemGift> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String amount;		// 数量
	private String intergral;		// 积分
	private Date startDate;		// 开始时间
	private Date endDate;		// 截止时间
	
	public MemberSysemGift() {
		super();
	}

	public MemberSysemGift(String id){
		super(id);
	}

	@Length(min=0, max=100, message="名称长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=20, message="数量长度必须介于 0 和 20 之间")
	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}
	
	@Length(min=0, max=10, message="积分长度必须介于 0 和 10 之间")
	public String getIntergral() {
		return intergral;
	}

	public void setIntergral(String intergral) {
		this.intergral = intergral;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
}